<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="applyForm">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">
                                用户名称：
                            </label>
                            <div class="col-sm-8">
                                <label class=" control-label" th:text="${apply.userName}"></label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">
                                一级指标：
                            </label>
                            <div class="col-sm-8">
                                <label class=" control-label" th:text="${apply.itemOneName}"></label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">
                                二级指标：
                            </label>
                            <div class="col-sm-8">
                                <textarea th:text=" ${apply.itemTwoName+'：'+apply.itemThreeName}"
                                          class="form-control" type="text" style="cursor: pointer;"
                                          readonly="readonly" placeholder="二级指标">
                                </textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">申请备注信息：</label>
                            <div class="col-sm-8">
                                <textarea class="form-control" title="" type="text" readonly
                                          th:text="${apply.remark}"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">
                                <em style="color: red;font-style: normal;">*</em>指标数量：
                            </label>
                            <div class="col-sm-3">
                                <input class="form-control" id="amount" th:value="${apply.amount}" type="number"
                                       placeholder="指标数量">
                            </div>
                            <label class="control-label">
                                <p class="text-danger">在审核时请务必再次确认指标数量信息</p>
                            </label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">指标类型：</label>
                            <div class="col-sm-8">
                                <label class=" control-label" th:text="${itemDO.money}"></label>
                                <label class=" control-label" th:text="${itemDO.moneyUnit}"></label>
                                <span class="label label-success" th:if="${itemDO.moneyType=='0'}">奖励</span>
                                <span class="label label-warning" th:if="${itemDO.moneyType=='1'}">处罚</span>
                            </div>
                        </div>
                        <div class="form-group" th:if="${fileDOS!=null}" th:each="item : ${fileDOS}">
                            <label class="col-sm-3 control-label">申请材料：</label>
                            <div class="col-sm-8">
                                <a th:href="${item.url}">
                                    <label class="control-label" th:text="${item.fileName}"></label>
                                </a>
                            </div>
                        </div>
                        <div class="form-group" th:if="${dataDO!=null}">
                            <label class="col-sm-3 control-label">材料说明：</label>
                            <div class="col-sm-8">
                                <textarea class="form-control" title="" type="text" readonly
                                          th:text="${dataDO.message}"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">
                                <em style="color: red;font-style: normal;">*</em>
                                审核结果：
                            </label>
                            <div class="col-sm-8">
                                <label th:each="state : ${dictS}" style="margin-left: 20px;margin-right: 20px">
                                    <input class="form-control" type="radio" name="state"
                                           th:value="${state.value}" th:checked="${state.value==apply.state}"
                                           th:text="${state.name}"/>
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">
                                <em style="color: red;font-style: normal;">*</em>
                                审核意见：
                            </label>
                            <div class="col-sm-8">
                                <textarea id="checkMessage" name="checkMessage" class="form-control"
                                          title="" type="text"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <input class="hidden" title="" id="id" name="id" th:value="${apply.id}">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script th:src="@{/appjs/yw/appraisalApply/applyEdit.js}">
</script>
</body>
</html>
